DECLARE_HANDLE(HZIP);	// An HZIP identifies a zip file that has been opened

#define ZIP_FILENAME 2
#define ZIP_MEMORY   3

typedef DWORD ZRESULT;

HZIP OpenZip(void *z,unsigned int len,DWORD flags);
ZRESULT CloseZip(HZIP hz);

ZRESULT GetZipItem(HZIP hz, WIN32_FIND_DATA*ze);
ZRESULT FindZipItem(HZIP hz, const TCHAR *name, bool ic, WIN32_FIND_DATA*ze);
ZRESULT UnzipItem(HZIP hz, void *dst, unsigned int len, DWORD flags);
